package ast;

public class BodyNode extends Node {
	public List vardecs;
	
	public BodyNode(List decs, List stmts) {
		vardecs = decs;
		left = stmts;
		right = null;
	}
	
	public BodyNode(StmtNode s) {
		vardecs = null;
		left = s;
		right = null;
	}

	public Object accept(Visitor v) {
		return v.visit(this);
	}

}
